package com.loanapp.server.app.provider.controller;

import com.loanapp.server.app.provider.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("user")
public class BwborrowerController {

    @Autowired
    private UserService userService;

//    @RequestMapping(value = "test2/{id}",method = RequestMethod.GET)
//    public BwBorrower test(@PathVariable Long id) throws Exception {
//
//        return userService.selectByPk(id);
//    }
//
//    @RequestMapping(value = "getByQuery",method = RequestMethod.POST)
//    public BwBorrower test1(@RequestBody BwBorrowerQuery bwBorrowerQuery) throws Exception {
//             System.out.println(bwBorrowerQuery.toString());
//        return userService.selectByPk(bwBorrowerQuery.getId());
//    }
}
